﻿CREATE TABLE [dbo].[codeCampaignDisposition] (
    [CampaignDispositionID] INT          NOT NULL,
    [Active]                BIT          NOT NULL,
    [Open]                  CHAR (10)    NOT NULL,
    [CampaignID]            INT          NULL,
    [Description]           VARCHAR (50) NOT NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines the status for tblCampaignDetail records.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCampaignDisposition';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Numeric code for call classification.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCampaignDisposition',
	@level2type = N'COLUMN', @level2name = N'CampaignDispositionID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines whether or not the CampaignDispositionId is active or not.  1 if it is active, 0 otherwise.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCampaignDisposition',
	@level2type = N'COLUMN', @level2name = N'Active';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'An open flag (1) represnts a situation where the customer still needs to be contacted.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCampaignDisposition',
	@level2type = N'COLUMN', @level2name = N'Open';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Specifies whether or not the CampaignDispositionId is associated with a Campaign.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCampaignDisposition',
	@level2type = N'COLUMN', @level2name = N'CampaignID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Definition for the CampaignDispositionId', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCampaignDisposition',
	@level2type = N'COLUMN', @level2name = N'Description';

